package main.java.game.item;



public class NotEquipable extends Item {
	
	public NotEquipable(String name, Double buyingPrice){
		super(name);
		this.buyingPrice=buyingPrice;
	}

	/**
	 * @uml.property  name="buyingPrice"
	 */
	private Double buyingPrice;
	/**
	 * @uml.property  name="name"
	 */

	@Override
	public String toString() {
		return  getName();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((buyingPrice == null) ? 0 : buyingPrice.hashCode());
		result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		NotEquipable other = (NotEquipable) obj;
		if (buyingPrice == null) {
			if (other.buyingPrice != null)
				return false;
		} else if (!buyingPrice.equals(other.buyingPrice))
			return false;
		if (getName() == null) {
			if (other.getName() != null)
				return false;
		} else if (!getName().equals(other.getName()))
			return false;
		return true;
	}

	/**
	 * @return
	 * @uml.property  name="buyingPrice"
	 */
	public Double getBuyingPrice() {
		return buyingPrice;
	}

	/**
	 * @param buyingPrice
	 * @uml.property  name="buyingPrice"
	 */
	public void setBuyingPrice(Double buyingPrice) {
		this.buyingPrice = buyingPrice;
	}

	/**
	 * @return
	 * @uml.property  name="name"
	 */


}
